package QQclient;

import java.util.HashMap;

public class Thread_Hashmap {
    public static void Add_Tread(String userId, ClientThread clientThread) {
    }

    public static class threadHashmap {
        private static HashMap<String,ClientThread> hashMap=new HashMap<>();
        public static void Add_Tread(String UserId,ClientThread clientThread){
            hashMap.put(UserId,clientThread);//将线程加入集合中
        }
        public static ClientThread Get_Client(String UserId){
            return hashMap.get(UserId);//获得相对应的线程
        }
    }
}
